import { instance as request } from '../request'

/**
 * 获取收获详情，
 * @param params
 * @returns
 */
export const getHarvestDetailApi = (
  harvestId: string
): PromiseRes<getHarvestResultItf> =>
  request.get(`/harvest/detail/${harvestId}`)

/**
 * 获取收获的示例列表
 * @param harvestId 收获id
 * @returns
 */
export const getHarvestExamplesApi = (
  harvestId: string
): PromiseRes<harvestExampleDetailItf[]> =>
  request.get(`/harvest/exampleList/${harvestId}`)
